//package cn.wbnyua.resume.mvc.service.v1;
//
//import cn.wbnyua.resume.mvc.domain.Skills;
//import cn.wbnyua.resume.mvc.mapper.SkillsMapper;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.cache.annotation.CacheEvict;
//import org.springframework.cache.annotation.CachePut;
//import org.springframework.cache.annotation.Cacheable;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//
///**
// * 作者：wbnyua.
// * 创建时间: 2023/2/6 22:02.
// */
//
//@Service
//public class SkillsService {
//
//    @Autowired
//    private SkillsMapper mapper;
//    @Cacheable(cacheNames = "skills",key = "#root.methodName")
//    public List<Skills> findAll(){
//        return mapper.findAll();
//    }
//
//    @Cacheable(cacheNames = "skills",key = "#id")
//    public Skills findById(Long id){
//        return mapper.findById(id);
//    }
//
//    public int add(Skills skills){
//        return mapper.add(skills);
//    }
//    @CachePut(cacheNames = "skills",key = "#skills.id")
//    public int update(Skills skills){
//        return mapper.update(skills);
//    }
//    @CacheEvict(cacheNames = "skills",key = "#id")
//    public int remove(Long id){
//        return mapper.remove(id);
//    }
//
//
//}
